//
//  CommonTools.swift
//  Swift3.0_Micro-blog-Sina
//
//  Created by Apple on 16/10/22.
//  Copyright © 2016年 Apple. All rights reserved.
//
/*
    - 等同于 OC中的 pch 文件   全局共享
 */
import UIKit

// 微博中需要使用的通知名字
let HMSWITCHROOTVCNOTI = "HMSWITCHROOTVCNOTI"

// 微博相关信息
let HMAPPKEY = "807655454"
let HMAPPSECRET = "299d0639437f607f97c37e624947bffa"
let HMREDIRECTURI = "http://www.baidu.com"
// 微博账号和密码
let HMWBNAME = "rangyuan05788697@163.com"
let HMWBPASSWD = "bbb333"



// 屏幕的宽度和高度
let HMSCREENW = UIScreen.main.bounds.width
let HMSCREENH = UIScreen.main.bounds.height
// 山寨微博的主题颜色
let HMTHEMECOLOR = UIColor.orange
// 常用字体大小
let HMBigFontSize: CGFloat = 18
let HMNormalFontSize: CGFloat = 14
let HMSmallFontSize: CGFloat = 10

// 随机颜色
func HMRandomColor() -> UIColor{
    let r = CGFloat(arc4random()%256)
    let g = CGFloat(arc4random()%256)
    let b = CGFloat(arc4random()%256)
    return UIColor(red: r/255, green: g/255, blue: b/255, alpha: 1)
}
